package com.sll.hosptials.model;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 数据字典
 * @TableName dict_info
 */
@TableName(value ="dict_info")
@Data
public class DictInfo implements Serializable {

    @ApiModelProperty("字典id")
    @TableId(type = IdType.AUTO)
    private Long dictId;

    @ApiModelProperty("字典code")
    private String dictCode;

    @ApiModelProperty("字典名")
    private String dictName;

    @ApiModelProperty("父id")
    private Long parentId;

    @ApiModelProperty("颜色")
    private String color;

    @ApiModelProperty("字典类型code")
    private String dictTypeCode;


    @ApiModelProperty("字典描述")
    private String dictDesption;

    /**
     * 逻辑删除
     */
    private Integer deleted;


    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createDateTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateDateTime;


    @ApiModelProperty("父节点集合(从上到下逗号分割)")
    private String dictPids;


    @ApiModelProperty("字典顺序")
    private Integer dictSort;

    @ApiModelProperty("字典简称")
    private String dictShortName;


    @ApiModelProperty("子节点")
    @TableField(exist = false)
    private List<DictInfo> childDict;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}